#ifndef __NUM_CONVERSION_H
#define __NUM_CONVERSION_H
//-----------------------------------------------------------------------------

#include "typedefs.h"
#include "type.h"
//-----------------------------------------------------------------------------

#define NC_BUFFER_LENGTH 16 // Conversion buffer size
#define NC_FILL_CHAR 32 // Character for post digits
//-----------------------------------------------------------------------------

extern char nc_buffer[];
//-----------------------------------------------------------------------------

char * nc_format(char * source_ptr,U08 digits);
char * nc_U08_to_str(U8 value,U08 digits);
char * nc_S08_to_str(S08 signed_value,U08 digits);
char * nc_U08_to_hex(U08 value);
char * nc_U08_to_bin(U08 value);
char * nc_U16_to_str(U16 value,U08 digits);
char * nc_U16_to_hex(U16 value);
char * nc_S16_to_str(S16 signed_value,U08 digits);
char * nc_U16_to_bin(U16 value);
char * nc_U32_to_str(U32 value,U08 digits);
char * nc_S32_to_str(S32 signed_value,U08 digits);
char * nc_U32_to_hex(U32 value);
char * nc_U32_to_bin(U32 value);
char * nc_float_to_str(float value,U08 decimals,U08 digits);
//-----------------------------------------------------------------------------

#endif
